package com.example.nebulaspringboot.service;

import com.example.nebulaspringboot.entity.User;
import com.example.nebulaspringboot.error.BusinessException;
import com.example.nebulaspringboot.service.model.UserModel;

import javax.persistence.criteria.CriteriaBuilder;
import java.util.List;

public interface UserService {

    UserModel selectByPrimaryKey(Integer id);

    List<UserModel> selectUserList();

    UserModel selectByUsername(String username) throws BusinessException;

    void insertSelective(User user) throws BusinessException;

    void updateByIdSelective(User user) throws BusinessException;

    void deleteById(Integer id);
}
